<tr>
  <td><%= user_info.name %></td>
  <td><%= user_info.surname %></td>
  <td><%= user_info.email %></td>
  <td><%= user_info.company.blank? ? "Nemá" : "#{user_info.company.name}" %></td>
  <td><%= user_info.user.has_discount? ? raw("#{user_info.user.discount}&nbsp;%") : "Nemá" %></td>
  <td>
    <% permitted_to? :delete, :admin_user_infos do %>
      <%= button_to_delete "X", admin_user_info_path(user_info) %>
    <% end %>
    <% permitted_to? :edit, :admin_user_infos do %>
      <%= button_to_edit "Editovat", edit_admin_user_info_path(user_info) %>
    <% end %>
  </td>
</tr>